package com.bcntouch.touch2act.User;

import android.content.Context;

public class User {

	private String name;
	
	private static User mCurrentUser;
	
	public User(String name) {
		this.setName(name);
	}
	
	public static User getCurrentUser(Context context) {
		if (mCurrentUser == null) {
			// Retrieve current user from db
			mCurrentUser = UserStorage.getCurrentUser(context);
		}
		
		return mCurrentUser;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
